<?=view('job.common.header')?>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-sm-12 header-bg">
            <h4 class=" col-xs-12 col-sm-12 text-center">问题反馈</h4>
        </div>
        <form id="fk" method="post">
        <div class="col-xs-12 col-sm-12 mtop15"><b>反馈原因：</b>
            <select class="form-control" name="causeid" id="product">
                <?php if ($causes && count($causes)): ?>
                <?php foreach ($causes as $val): ?>
                <option value="<?=$val->id?>"><?=$val->name?></option>
                <?php endforeach;?>
                <?php endif; ?>
            </select>
            <input type="hidden" value="1" name="jstatus">
        </div>
        <div class="col-xs-12 col-sm-12">
            <div class="kdsl">建议处理：</div>
            <textarea class="form-control border-color" name="suggest" style="max-width: 100%; min-height: 180px;" placeholder="--填写后续处理建议--" ></textarea>
        </div>
        <div class="col-xs-12 col-sm-12">
            <a class="btn form-control btn-f60 mtop15 eveAdd" href="#">确定</a>
            <a class="btn mtop15 btn-success form-control" href="<?=url("job/index/jobdetail/{$id}")?>">返回</a>
        </div>
        </form>
    </div>
</div>
<script>
    $(".eveAdd").click(function(){
        if ($('textarea[name=suggest]').val() == "") {
            showMsg("请填写后续处理建议");
            return false;
        }
        $('#fk').submit();
        return false;
    });
    
    function showMsg(msg) {
        layer.open({
                content: msg,
                style: 'background-color:#09C1FF; color:#fff; border:none;',
                time: 2
            });
    }
</script>
<?=view('job.common.footer')?>